package br.com.sigde.servico;

import java.util.List;

import br.com.sigde.dao.ProfissionalDAO;
import br.com.sigde.framework.exception.LogicException;
import br.com.sigde.framework.exception.ServiceException;
import br.com.sigde.modelo.Profissional;

public class ProfissionalServiceImpl implements ProfissionalService{

	public Profissional incluir(Profissional dto) throws ServiceException,
			LogicException {
		ProfissionalDAO.getInstance().incluir(dto);
		return null;
	}

	public void atualizar(Profissional dto) throws ServiceException,
			LogicException {
		ProfissionalDAO.getInstance().alterar(dto);		
	}

	public void deletar(Profissional dto) throws ServiceException,
			LogicException {
		ProfissionalDAO.getInstance().excluirProfissional(dto);
		
	}

	public Profissional recuperar(Profissional dto) throws ServiceException,
			LogicException {
		return (Profissional) ProfissionalDAO.getInstance().recuperar(dto);
		
	}

	public List<Profissional> consultar(Profissional dto)
			throws ServiceException, LogicException {
		return ProfissionalDAO.getInstance().consultar(dto);
	}

	public List<Profissional> listar() throws ServiceException, LogicException {
		// TODO Auto-generated method stub
		return null;
	}

}
